Skip to content

feat: Add XLayer mainnet and testnet support#29

Open
JimmyShi22 wants to merge 1 commit intomcpdotdirect:mainfrom
JimmyShi22:main
Open

feat: Add XLayer mainnet and testnet support#29
JimmyShi22 wants to merge 1 commit intomcpdotdirect:mainfrom
JimmyShi22:main

Conversation

@JimmyShi22
Copy link
Copy Markdown

@JimmyShi22 JimmyShi22 commented Mar 23, 2026

This pull request adds support for the xLayer and xLayer Testnet blockchains throughout the src/core/chains.ts file. The changes ensure that both mainnet and testnet variants of xLayer are integrated into the application's chain configuration, network name mapping, and RPC URL resolution.

xLayer and xLayer Testnet Integration:

  • Added xLayer and xLayerTestnet imports from viem/chains and included them in the chainMap for their respective chain IDs (196 for xLayer, 1952 for xLayer Testnet). [1] [2] [3] [4]
  • Updated networkNameMap to map 'xlayer' and 'xlayer-testnet' to their corresponding chain IDs. [1] [2]
  • Added RPC URLs for both xLayer (https://xlayerrpc.okx.com) and xLayer Testnet (https://xlayertestrpc.okx.com) in the rpcUrlMap. [1] [2]

@JimmyShi22 JimmyShi22 changed the title Add XLayer mainnet and testnet support feat: Add XLayer mainnet and testnet support Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant